<?php
class Pageley_Imaging_Brush_Texture implements Pageley_Imaging_Brush {
    private $image;
    
    public function __construct($image) {
        $this->image = $image;
    }
    
    public function getColorId($resource) {
        imagesettile($resource, $this->image->getResource());
        return IMG_COLOR_TILED;
    }
}